package diseaseandcureadministration.disease;

import diseaseandcureadministration.registry.Registry;

/**
 * Singleton subclass of Registry
 * 
 * @author Peter Tolstrup Aagesen, ptaa@itu.dk
 *
 */
public class DiseaseRegistry extends Registry
{	
	private static DiseaseRegistry _uniqueRegistry = null;
	
	//Private constructor
	private DiseaseRegistry()
	{
		super();
		setLoader(new DiseaseFileLoader());
		load();
	}

	//Return unique instance
	public static synchronized Registry getRegistryInstance() 
	{
		if (_uniqueRegistry == null)
		{
			_uniqueRegistry = new DiseaseRegistry();
		}
		
		return _uniqueRegistry;
	}
}
